package com.example.tuter.util;

import com.example.tuter.entity.SchoolCookie;
import com.example.tuter.entity.UserInfo;

import java.util.Calendar;

import retrofit2.Retrofit;

public class Constant {
    public static final String NOTLOGINSTRING = "未登录";
    public static String baseUrl = "http://81.70.98.90:8084";

    //唯一的用户信息
    public static UserInfo userInfo = null;
    //获取信息门户服务的cookie，不往后端传输
    public static SchoolCookie schoolCookie = null;
    //前后端交互使用的token
    public static String token = null;



    //日期
    public static final Calendar cal = Calendar.getInstance();

    public static int YEAR = cal.get(Calendar.YEAR);
    public static int MOUTH = cal.get(Calendar.DAY_OF_MONTH);
    public static int WEEK = cal.get(Calendar.DAY_OF_WEEK);

    public static int SECOND_M = 1000;
    public static int MINUTE_M = SECOND_M * 60;
    public static int HOUR_M = MINUTE_M * 60;
    public static int DAY_M = HOUR_M * 24;


    //当前学期，当前周数
    public static String CUR_SEMESTER;
    public static Integer CUR_WEEKS;


    //page
    public static Integer PAGE_SIZE = 10;

    public static Integer POST_TYPE_NONE = 0;
    public static Integer POST_TYPE_HELP = 1;
    public static Integer POST_TYPE_LOSS = 2;

    //协同过滤
    public static final int CF=0;
    //基于内容的推荐
    public static final int CB=1;
    //基于热点新闻的推荐
    public static final int HR=2;


    public static String ACTION_BROADCAST = "com.example.tuter";
    public static Retrofit r = null;




}
